﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class TestSprite : MonoBehaviour
{
    // Start is called before the first frame update
    void Start()
    {
        Sprite spr = GetComponent<SpriteRenderer>().sprite;
        Debug.LogErrorFormat("{0},{1}", spr.rect.width, spr.rect.height);
        Texture2D txt = spr.texture;
        Debug.LogErrorFormat("{0},{1}", txt.width, txt.height);
    }

    // Update is called once per frame
    void Update()
    {
        
    }
}
